package cn.source.zk.mapper;


import cn.source.zk.domain.entity.FieldInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DbFieldInfoMapper {

    /**
     * 根据表明获取表的字段列表
     * @param tableName
     * @return
     */
    List<FieldInfo> getFieldInfo(@Param("tableName") String tableName);

    /**
     * 根据字段名称获取注释
     * @param tableName
     * @param fieldName
     * @return
     */
    String getCommentByField(@Param("tableName") String tableName,@Param("fieldName") String fieldName);
    List<String> getTableColumn(@Param("tableName") String tableName,@Param("column") String column);
    List<String> getTableFinSetColumn(@Param("tableName") String tableName,@Param("column") String column);
}
